package com.example.youyouhaodian.service.impl;

import com.example.youyouhaodian.dao.UserDao;
import com.example.youyouhaodian.pojo.User;
import com.example.youyouhaodian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
     private UserDao userDao;
    @Override
    public User findUserName(String userName) {
        return userDao.findUserName(userName);
    }

    @Override
    public int insertUser(String userName, String userPwd) {
        return userDao.insertUser(userName,userPwd);
    }


}
